package com.system.boot.login.service;

import org.yang.common.core.exception.BaseException;
import org.yang.common.core.model.ApplyToken;
import org.yang.common.core.model.AuthDto;


/**
 * @author: lslands
 * @description:
 * @version：v1.0
 * @date: 2024/6/6 15:59
 */
public interface ApplyService {
    /**
     * 登录授权
     * @param dto 授权请求参数
     * @return token对象
     * @throws BaseException 授权异常
     */
    ApplyToken applyToken(AuthDto dto) throws BaseException;
}
